import request from '@/utils/request'

export default {
  list() {
    return request({
      url: '/plan/list',
      method: 'get'
    })
  },
  add(plan) {
    return request({
      url: '/plan/add',
      method: 'post',
      data: plan
    })
  },
  del(id) {
    return request({
      url: '/plan/del',
      method: 'post',
      data: {id}
    })
  },
  update(plan) {
    return request({
      url: '/plan/update',
      method: 'post',
      data: plan
    })
  }
}
